package com.jeeplus.test.jlnu.xlsxManage.domain.query;

import com.jeeplus.test.jlnu.xlsxManage.domain.entity.JlnuXlsxManage;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

@Data
public class XlsxManagePageQuery implements Serializable {

    /**
     * 所属部门id
     **/
    private String officeId;

    /**
     * 类型
     **/
    private String type;

    /**
     * 名称
     **/
    private String name;


    private int page;


    private int limit;

    private String userType;


    private String[] types;

    public String[] getTypes() {
        if (StringUtils.isNotBlank(type)) {
            return type.split(",");
        }
        return null;
    }
}
